package com.sly.demoim.result;

/**
 * 基础结果code
 *
 * @author SLY
 * @date 2021/12/6
 */
public enum ResultCode implements IResultCode {
    /** 服务器未知异常 */
    SERVER_ERROR("999999", "抱歉，服务器繁忙请稍候再试！"),
    ;
    ResultCode(String code, String msg){
        this.code = code;
        this.msg = msg;
    }

    private final String code;
    private final String msg;

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
